package com.qys.livesMall.shop.controller.app;

import com.qys.livesMall.common.result.R;
import com.qys.livesMall.shop.service.ShopIncomeConfigService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

@RestController
@RequestMapping("/app/shopIncomeConfig")
@Tag(name = "App-店铺配置信息", description = "App-店铺配置信息")
public class APPShopIncomeConfigController {
    @Resource
    private ShopIncomeConfigService shopIncomeConfigService;

    /**
     * 获取店铺收益分配配置
     * @return
     */
    @GetMapping("/getAdvancePaymentConfig")
    public R<BigDecimal> getAdvancePaymentConfig(){
        return R.ok(shopIncomeConfigService.getAdvancePaymentConfig());
    }
}
